#!/bin/bash

if [ $# -lt 1 ]; then
  echo "$0 <project>"
  exit 1
fi

PRJ=$1

r=$(mktemp)
osc r --csv "${PRJ}" | tail -n +2 > ${r}

echo "########  ${PRJ} build status ########"
echo
awk -f status.awk ${r}
rm -f ${r}
echo 
echo "######################################"
